home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: reshape.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 72 65 73 68 61 70 65 |\section|{reshape|
|00000010| 20 2d 2d 2d 20 52 65 73 | 68 61 70 65 20 6d 61 74 | --- Res|hape mat|
|00000020| 72 69 78 7d 0d 5c 6c 61 | 62 65 6c 7b 66 6e 3a 72 |rix}.\la|bel{fn:r|
|00000030| 65 73 68 61 70 65 7d 0d | 5c 69 6e 64 65 78 7b 72 |eshape}.|\index{r|
|00000040| 65 73 68 61 70 65 28 29 | 7d 0d 5c 69 6e 64 65 78 |eshape()|}.\index|
|00000050| 7b 72 65 73 68 61 70 65 | 20 6d 61 74 72 69 78 7d |{reshape| matrix}|
|00000060| 0d 5c 69 6e 64 65 78 7b | 6d 61 74 72 69 78 21 72 |.\index{|matrix!r|
|00000070| 65 73 68 61 70 69 6e 67 | 7d 0d 5c 62 65 67 69 6e |eshaping|}.\begin|
|00000080| 7b 72 61 69 6c 7d 0d 52 | 65 73 68 61 70 65 20 3a |{rail}.R|eshape :|
|00000090| 20 27 72 65 73 68 61 70 | 65 27 20 27 28 27 20 4d | 'reshap|e' '(' M|
|000000a0| 61 74 72 69 78 20 27 2c | 27 20 53 63 61 6c 61 72 |atrix ',|' Scalar|
|000000b0| 20 27 2c 27 20 53 63 61 | 6c 61 72 20 27 29 27 20 | ',' Sca|lar ')' |
|000000c0| 3b 0d 5c 65 6e 64 7b 72 | 61 69 6c 7d 0d 0d 5c 76 |;.\end{r|ail}..\v|
|000000d0| 65 72 62 2b 72 65 73 68 | 61 70 65 2b 20 20 63 68 |erb+resh|ape+ ch|
|000000e0| 61 6e 67 65 73 20 74 68 | 65 20 69 6e 74 65 72 6e |anges th|e intern|
|000000f0| 61 6c 20 66 6f 72 6d 20 | 6f 66 20 74 68 65 20 61 |al form |of the a|
|00000100| 72 67 75 6d 65 6e 74 20 | 6d 61 74 72 69 78 20 73 |rgument |matrix s|
|00000110| 75 63 68 0d 74 68 61 74 | 20 74 68 65 20 6d 61 74 |uch.that| the mat|
|00000120| 72 69 78 20 72 65 74 75 | 72 6e 65 64 20 68 61 73 |rix retu|rned has|
|00000130| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 72 | the num|ber of r|
|00000140| 6f 77 73 20 73 70 65 63 | 69 66 69 65 64 20 62 79 |ows spec|ified by|
|00000150| 20 74 68 65 0d 73 65 63 | 6f 6e 64 20 61 72 67 75 | the.sec|ond argu|
|00000160| 6d 65 6e 74 2c 20 61 6e | 64 20 74 68 65 20 6e 75 |ment, an|d the nu|
|00000170| 6d 62 65 72 20 6f 66 20 | 63 6f 6c 75 6d 6e 73 20 |mber of |columns |
|00000180| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 74 68 65 |specifie|d by the|
|00000190| 20 6c 61 73 74 20 61 72 | 67 75 6d 65 6e 74 2e 0d | last ar|gument..|
|000001a0| 5c 76 65 72 62 2b 72 65 | 73 68 61 70 65 2b 20 77 |\verb+re|shape+ w|
|000001b0| 69 6c 6c 20 6e 6f 74 20 | 72 65 66 6f 72 6d 20 74 |ill not |reform t|
|000001c0| 68 65 20 6d 61 74 72 69 | 78 20 69 66 20 74 68 65 |he matri|x if the|
|000001d0| 20 6e 65 77 20 6d 61 74 | 72 69 78 20 61 6e 64 20 | new mat|rix and |
|000001e0| 74 68 65 0d 6f 6c 64 20 | 6d 61 74 72 69 78 20 77 |the.old |matrix w|
|000001f0| 6f 75 6c 64 20 6e 6f 74 | 20 68 61 76 65 20 74 68 |ould not| have th|
|00000200| 65 20 73 61 6d 65 20 6e | 75 6d 62 65 72 20 6f 66 |e same n|umber of|
|00000210| 20 65 6c 65 6d 65 6e 74 | 73 2e 0d 0d 0d 5c 70 61 | element|s....\pa|
|00000220| 72 61 67 72 61 70 68 7b | 45 78 61 6d 70 6c 65 7d |ragraph{|Example}|
|00000230| 0d 5c 69 6e 64 65 78 7b | 65 78 61 6d 70 6c 65 20 |.\index{|example |
|00000240| 6f 66 20 72 65 73 68 61 | 70 65 28 29 7d 0d 5c 69 |of resha|pe()}.\i|
|00000250| 6e 64 65 78 7b 72 65 73 | 68 61 70 65 28 29 21 65 |ndex{res|hape()!e|
|00000260| 78 61 6d 70 6c 65 7d 0d | 5c 62 65 67 69 6e 7b 76 |xample}.|\begin{v|
|00000270| 65 72 62 61 74 69 6d 7d | 0d 3e 20 61 20 3d 20 31 |erbatim}|.> a = 1|
|00000280| 3a 32 30 3b 0d 3e 20 73 | 68 6f 77 28 61 29 0d 20 |:20;.> s|how(a). |
|00000290| 20 20 6e 61 6d 65 3a 20 | 20 20 20 20 20 61 20 20 | name: | a |
|000002a0| 20 20 20 0d 20 20 20 63 | 6c 61 73 73 3a 20 20 20 | . c|lass: |
|000002b0| 20 20 6e 75 6d 20 20 20 | 0d 20 20 20 74 79 70 65 | num |. type|
|000002c0| 3a 20 20 20 20 20 20 72 | 65 61 6c 20 20 0d 20 20 |: r|eal . |
|000002d0| 20 20 20 6e 72 3a 20 20 | 20 20 20 20 31 20 20 20 | nr: | 1 |
|000002e0| 20 20 0d 20 20 20 20 20 | 6e 63 3a 20 20 20 20 20 | . |nc: |
|000002f0| 20 32 30 20 20 20 20 0d | 3e 20 62 20 3d 20 72 65 | 20 .|> b = re|
|00000300| 73 68 61 70 65 28 61 2c | 34 2c 35 29 0d 20 62 20 |shape(a,|4,5). b |
|00000310| 3d 0d 20 20 20 20 20 20 | 20 20 31 20 20 20 20 20 |=. | 1 |
|00000320| 20 20 20 20 20 35 20 20 | 20 20 20 20 20 20 20 20 | 5 | |
|00000330| 39 20 20 20 20 20 20 20 | 20 20 31 33 20 20 20 20 |9 | 13 |
|00000340| 20 20 20 20 20 31 37 20 | 20 0d 20 20 20 20 20 20 | 17 | . |
|00000350| 20 20 32 20 20 20 20 20 | 20 20 20 20 20 36 20 20 | 2 | 6 |
|00000360| 20 20 20 20 20 20 20 31 | 30 20 20 20 20 20 20 20 | 1|0 |
|00000370| 20 20 31 34 20 20 20 20 | 20 20 20 20 20 31 38 20 | 14 | 18 |
|00000380| 20 0d 20 20 20 20 20 20 | 20 20 33 20 20 20 20 20 | . | 3 |
|00000390| 20 20 20 20 20 37 20 20 | 20 20 20 20 20 20 20 31 | 7 | 1|
|000003a0| 31 20 20 20 20 20 20 20 | 20 20 31 35 20 20 20 20 |1 | 15 |
|000003b0| 20 20 20 20 20 31 39 20 | 20 0d 20 20 20 20 20 20 | 19 | . |
|000003c0| 20 20 34 20 20 20 20 20 | 20 20 20 20 20 38 20 20 | 4 | 8 |
|000003d0| 20 20 20 20 20 20 20 31 | 32 20 20 20 20 20 20 20 | 1|2 |
|000003e0| 20 20 31 36 20 20 20 20 | 20 20 20 20 20 32 30 20 | 16 | 20 |
|000003f0| 20 0d 3e 20 63 20 3d 20 | 72 65 73 68 61 70 65 28 | .> c = |reshape(|
|00000400| 62 2c 32 2c 31 30 29 0d | 20 63 20 3d 0d 20 6d 61 |b,2,10).| c =. ma|
|00000410| 74 72 69 78 20 63 6f 6c | 75 6d 6e 73 20 31 20 74 |trix col|umns 1 t|
|00000420| 68 72 75 20 36 0d 20 20 | 20 20 20 20 20 20 31 20 |hru 6. | 1 |
|00000430| 20 20 20 20 20 20 20 20 | 20 33 20 20 20 20 20 20 | | 3 |
|00000440| 20 20 20 20 35 20 20 20 | 20 20 20 20 20 20 20 37 | 5 | 7|
|00000450| 20 20 20 20 20 20 20 20 | 20 20 39 20 20 20 20 20 | | 9 |
|00000460| 20 20 20 20 31 31 20 20 | 0d 20 20 20 20 20 20 20 | 11 |. |
|00000470| 20 32 20 20 20 20 20 20 | 20 20 20 20 34 20 20 20 | 2 | 4 |
|00000480| 20 20 20 20 20 20 20 36 | 20 20 20 20 20 20 20 20 | 6| |
|00000490| 20 20 38 20 20 20 20 20 | 20 20 20 20 31 30 20 20 | 8 | 10 |
|000004a0| 20 20 20 20 20 20 20 31 | 32 20 20 0d 0d 20 6d 61 | 1|2 .. ma|
|000004b0| 74 72 69 78 20 63 6f 6c | 75 6d 6e 73 20 37 20 74 |trix col|umns 7 t|
|000004c0| 68 72 75 20 31 30 0d 20 | 20 20 20 20 20 20 31 33 |hru 10. | 13|
|000004d0| 20 20 20 20 20 20 20 20 | 20 31 35 20 20 20 20 20 | | 15 |
|000004e0| 20 20 20 20 31 37 20 20 | 20 20 20 20 20 20 20 31 | 17 | 1|
|000004f0| 39 20 20 0d 20 20 20 20 | 20 20 20 31 34 20 20 20 |9 . | 14 |
|00000500| 20 20 20 20 20 20 31 36 | 20 20 20 20 20 20 20 20 | 16| |
|00000510| 20 31 38 20 20 20 20 20 | 20 20 20 20 32 30 20 0d | 18 | 20 .|
|00000520| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0d 0d |\end{ver|batim}..|
|00000530| 5c 6e 65 77 70 61 67 65 | 0d 0d 0d 0d |\newpage|.... |
+--------+-------------------------+-------------------------+--------+--------+